<template>
  <div>
    <router-view></router-view>
  </div>
</template>

<script>
import Home from "@/components/Home";
import hljs from "highlight.js";
import "highlight.js/styles/atom-one-dark.css";
import css from "highlight.js/lib/languages/css";
hljs.registerLanguage("css", css);
export default {
  name: "app",
  components: { Home },
  mounted() {
    document.addEventListener("DOMContentLoaded", event => {
      document.querySelectorAll("pre code").forEach(block => {
        hljs.highlightBlock(block);
      });
    });
  },
  methods: {}
};
</script>

<style>
#app {
  font-family: "Avenir", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}
body {
  margin: 0 0;
}
.container {
  margin: 20px 5%;
}
</style>
